package com.chen.demo;

import lombok.Data;

import javax.validation.constraints.*;
import java.util.Date;

@Data
public class User {
    private String id;
    @NotBlank
    private String username;
    @NotBlank
    private String password;
    @Max(130)
    @Min(0)
    private Integer age;
    private Date birth;
    @Email
    private String email;
    @Size(min = 11,max = 11)
    private String phone;
}
